<!-- src/views/errors/403.vue -->
<template>
  <div class="error-container">
    <el-result
      icon="warning"
      title="403 禁止访问"
      sub-title="您没有权限访问该页面"
    >
      <template #extra>
        <el-button type="primary" @click="backHome">返回首页</el-button>
      </template>
    </el-result>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";

const router = useRouter();
const backHome = () => router.push("/");
</script>

<style scoped>
.error-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
</style>
